package com.example.spring_boot;

import com.example.Dao.StuDao;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class StuDaoTest {
    private StuDao stuDao;
    @Autowired
    public void setStuDao(StuDao stuDao){
        this.stuDao=stuDao;
    }
    @Test
    public void txTest(){
        stuDao.tx();;
    }

}